<?php
		$iID=$_POST['iID'];
		$itablename=$_POST['tablename'];
		$servername = "127.0.0.1";
		$username = "root";
		$password = "";
		$dbname = "OnlineDeliverOrderSystem_schema";
		// 创建连接
		$conn = new mysqli($servername, $username, $password, $dbname);
		// 检测连接
		if ($conn->connect_error) {
		    die("连接失败: " . $conn->connect_error);
		}
			
		$sequrySql=sprintf("SELECT * FROM %s WHERE ID='%s'",$itablename,$iID);
		$result = mysqli_query($conn,$sequrySql);
			
		while($row = mysqli_fetch_array($result))
		{
		   $arr = array ('ID'=>$row['ID'],'mobilephone'=>$row['mobilephone'],'password'=>$row['password']);
		}
		echo json_encode($arr);
		$conn->close();
?>